package cn.kgc.service;


import cn.kgc.mapper.EmployeeInfMapper;
import cn.kgc.pojo.EmployeeInf;

import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;

public interface EmployeeService {


    int getCount(String name,
                 String cardId,
                 String phone,
                 Integer deptId,
                 Integer jobId,
                 Integer sex);

    List<EmployeeInf> getEmployeeInfByPage(Integer pageNo,
                                           Integer pageSize,
                                           String name,
                                           String cardId,
                                           String phone,
                                           Integer deptId,
                                           Integer jobId,
                                           Integer sex);

    EmployeeInf getEmployeeInfById(Integer id);

    boolean updateEmployeeInf(EmployeeInf employeeInf);

    boolean addEmployeeInf(EmployeeInf employeeInf);

    boolean delId(Integer id);

    EmployeeInf getEmployeeInfName(String name);
}
